//
//  ResourceRequisitionDB.h
//  Tazama NGO
//
//  Created by jsheriff on 3/25/11.
//  Copyright 2011 The MITRE Corporation. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ResourceRequisition.h"

@interface ResourceRequisitionDB : NSObject <NSXMLParserDelegate> {
	NSMutableArray *resourceRequisitionList;
    NSTimer *timer;
    NSMutableData *receivedData;
    NSURLConnection *theConnection;
    int lastStatusCode;
    NSXMLParser *xmlParser;
    ResourceRequisition *currentResourceRequisition;
	NSMutableString *currentStringValue;
}

@property (nonatomic, retain) NSMutableArray *resourceRequisitionList;

-(void) addNewResourceRequisition:(ResourceRequisition *)resourceRequisition;
-(void) initWithTestData;
-(void)parseResponse:(NSData *)responseData;

-(void)startPollingFeed;

+(ResourceRequisitionDB *)sharedInstance;

@end
